package nizovi.z4;
import usluge.Citaj;

public class Obrni {

	
	public static void main(String[] args) {
		while (true) {
			int n;
			System.out.println("n?");
			n = Citaj.Int();
			if (n <= 0) break;
			
			double []niz = new double[args.length+1];
//			System.out.print("Unesi niz: ");
//			for (int i=0; i<niz.length; i++) niz[i] = Citaj.Int();
			System.out.print("Niz: ");
			for (int i=0; i<args.length; i++) {
				niz[i] = Integer.parseInt(args[i]);
				System.out.print(niz[i] + " ");
			}
			
			for (int i=0, j=niz.length-1; i<j; i++, j--) {
				double b=niz[i]; niz[i]=niz[j]; niz[j]=b;
			}
				
			System.out.print("\nnovi niz: ");
			for (int i=0; i<niz.length; i++) {
				System.out.print(niz[i] + ", ");
			}
			
		}
	}

}
